;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages books)
  #:use-module (guix build-system copy)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages))

(define-public guix-reference-card
  (package
    (name "guix-reference-card")
    (version "1.3.0-19751-ge640da33f3")
    (source #f)
    (build-system copy-build-system)
    (arguments
     (list #:install-plan
           #~`((,#$(origin
                     (method url-fetch)
                     (uri "https://guix.gnu.org/guix-refcard.pdf")
                     (file-name (string-append name "-" version ".pdf"))
                     (sha256
                      (base32
                       "1qh0qryy606cfa0h4kxg2fyvji9908ppzajmppzs1xv09gcmj6j7")))
                "share/doc/guix-refcard/refcard.pdf"))
           #:phases
           #~(modify-phases %standard-phases
               (delete 'unpack))))
    (home-page "https://guix.gnu.org")
    (synopsis "GNU Guix Reference Card")
    (description
     "This package provides the GNU Guix reference card as a
PDF file.")
    (license license:fdl1.3+)))
